﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Procesos.ascx.cs" Inherits="CustomControls_Procesos" %>
<div class="form">
    <div class="required-message">Los campos indicados con <span class="required-mark">*</span> son requeridos</div>
    <fieldset><legend>&nbsp;Detalles del Proceso&nbsp;</legend>
        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblName" AssociatedControlID="txtName" Text="<span class='required-mark'>*</span> Nombre"></asp:Label>
            <asp:TextBox ID="txtName" CssClass="field" runat="server" Text=''  MaxLength="255"></asp:TextBox>
            <asp:RequiredFieldValidator ID="FNvalidator" runat="server" Display="Dynamic" ForeColor="Red" SetFocusOnError="true"
                ControlToValidate="txtName" ErrorMessage="Requerido"></asp:RequiredFieldValidator>
        </div>
        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblDescription" AssociatedControlID="txtDescription" Text="&nbsp;&nbsp;&nbsp;Descripci&oacute;n"></asp:Label>
            <asp:TextBox ID="txtDescription" CssClass="field" runat="server"  TextMode="MultiLine"></asp:TextBox>
        </div>
        <div class="field-line" runat="server" id="divSample">
            <asp:Image runat="server" CssClass="field" ID="imgSample" Width="200px" style="margin-left:115px;"></asp:Image>
            <div class="clear"></div>
        </div>
        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblSampleImage" AssociatedControlID="uplSample" Text="&nbsp;&nbsp;&nbsp;Muestra"></asp:Label>
            <asp:FileUpload Width="225" runat="server" CssClass="field" ID="uplSample" />
            <asp:HiddenField runat="server" ID="hdnSample" />
            <asp:RegularExpressionValidator ForeColor="Red"  ValidationExpression=".*\.(jpg|JPG|png|PNG|bmp|BMP|gif|GIF)$"
                    ControlToValidate="uplSample" Display="Dynamic" ID="regFileValidator" runat="server"
                    Text="Solo jpg, png, bmp o gif"></asp:RegularExpressionValidator>
            <br />
            <span ID="litSampleMessage" class="sample-message">Ej. Muestra.jpg / Muestra.png / Muestra.gif</span>
            
        </div>
        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblActivo" AssociatedControlID="chkEnabled" Text="&nbsp;&nbsp;&nbsp;Est&aacute; Activo?"></asp:Label>
            <asp:CheckBox runat="server" CssClass="field" ID="chkEnabled" />
        </div>
        <div class="buttons-actions">
            <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Guardar" />
            <asp:Button runat="server" ID="btnCancel" OnClick="btnCancel_Click" CausesValidation="false" Text="Cancelar" />
        </div>
    </fieldset>

</div>    